<!DOCTYPE html>
<html>
<head>
    <title>享受优惠面积信息管理</title>
    <#include "../common/common.ftl"/>
    <link rel="stylesheet" href="/style/contractForm.css" media="all">

</head>
<body>
<div class="layui-fluid">
    <form class="layui-form" id="areaStatusForm">
        <input type="hidden" name="contractId" value="${(contract.id)!}"/>
        <div class="layui-card">
            <div class="layui-card-header">享受优惠面积信息关键值:</div>
            <div class="layui-card-body">
                <div class="layui-form-item">
                    <label class="layui-form-labelLong">节点优惠面积<span style="color: red">*即超出此面积按市场价结算*</span>：</label>
                    <div class="layui-input-blockRight">
                        <div class="layui-input-blockRight">
                            <input type="text" class="layui-input" autocomplete="off" name="overArea"
                                   value="${(overArea)!}" placeholder="节点优惠面积"/>
                        </div>
                    </div>
                </div>

                <#-- <div class="layui-form-item">
                     <label class="layui-form-labelLong">选房限制：</label>
                     <div class="layui-input-blockRight">

                         <input type="radio"
                                <#if (!contract.chooseLimitType?? || contract.chooseLimitType == 1)>checked</#if>
                                name="chooseLimitType" value="1" title="无限制"/>
                     &lt;#&ndash;<input type="radio"&ndash;&gt;
                     &lt;#&ndash;<#if (contract.chooseLimitType?? && contract.chooseLimitType == 2)>checked</#if>&ndash;&gt;
                     &lt;#&ndash;name="chooseLimitType" value="2" title="区间限制"/>&ndash;&gt;
                         <input type="radio"
                                <#if (contract.chooseLimitType?? && contract.chooseLimitType == 3)>checked</#if>
                                name="chooseLimitType" value="3" title="保障区\区间二选一验证"/>
                     </div>
                 </div>-->
                <#--<div class="layui-form-item">
                    <label class="layui-form-labelLong">必选大套型：</label>
                    <div class="layui-input-blockRight">

                        <input type="radio"
                               <#if (!contract.isChooseBigHouse?? || contract.isChooseBigHouse == 1)>checked</#if>
                               name="isChooseBigHouse" value="1" title="必选"/>
                        <input type="radio"
                               <#if (contract.isChooseBigHouse?? && contract.isChooseBigHouse == 2)>checked</#if>
                               name="isChooseBigHouse" value="2" title="非必选"/>
                    </div>
                </div>-->
                <#-- <div class="layui-form-item">
                     <label class="layui-form-labelLong">保障类型：</label>
                     <div class="layui-input-blockRight">
                         <input type="text" class="layui-input" autocomplete="off" name="baoZhangType"
                                value="${(contract.baoZhangType)!}" placeholder="可选择“保障区”三/四房二厅房源"/>
                     </div>
                 </div>-->
                <#--<div class="layui-form-item">
                    <label class="layui-form-labelLong">合并到选房号：</label>
                    <div class="layui-input-blockRight">
                        <input type="text" class="layui-input" autocomplete="off" name="toChooseHouseNum"
                               value="${(contract.toChooseHouseNum)!}" placeholder="合并必填"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-labelLong">合并到协议号：</label>
                    <div class="layui-input-blockRight">
                        <input type="text" class="layui-input" autocomplete="off" name="toContractCode"
                               value="${(contract.toContractCode)!}" placeholder="合并必填"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-labelLong">合并到安置区：</label>
                    <div class="layui-input-blockRight">
                        <input type="text" class="layui-input" autocomplete="off" name="toAzProjectName"
                               value="${(contract.toAzProjectName)!}" placeholder="合并必填"/>
                    </div>
                </div>-->
                <#--<div class="layui-form-item">-->
                <#--<label class="layui-form-labelLong">储物间是否正常安置：</label>-->
                <#--<div class="layui-input-blockRight">-->

                <#--<input type="radio"-->
                <#--<#if (!contract.buyStorageRoomType?? || contract.buyStorageRoomType == 1)>checked</#if>-->
                <#--name="buyStorageRoomType" value="1" title="面积抵扣"/>-->
                <#--<input type="radio"-->
                <#--<#if (contract.buyStorageRoomType?? && contract.buyStorageRoomType == 2)>checked</#if>-->
                <#--name="buyStorageRoomType" value="2" title="申购"/>-->
                <#--</div>-->
                <#--</div>-->
            </div>
        </div>

        <button style="display: none;" class="layui-btn" id="submitBtn" name="submitBtn" lay-submit=""
                lay-filter="submit">立即提交
        </button>
    </form>
</div>
<script src="/layui/layui.js" charset="utf-8"></script>
<script>
    layui.config({
        base: '/modules/' //静态资源所在路径
    }).use(['form', 'dataDict'], function () {
        var form = layui.form, $ = layui.jquery, parentIndex = parent.layer.getFrameIndex(window.name);

        //监听提交
        form.on('submit(submit)', function (data) {
            $.ajax({
                url: 'saveIsJieSuanStatus',
                type: 'post',
                data: $("#areaStatusForm").serialize(),//当前容器的全部表单字段，名值对形式：{name: value}
                async: false,
                success: function (data) {
                    if (data.code == "0001") {
                        parent.layer.close(parentIndex);
                    } else {
                        layer.msg(data.message, {anim: 6, icon: 2, time: 3000});
                    }
                }
            });
            return false;
        });
    });
</script>
</body>
</html>